package com.topcheer.common.datasource.constants;

/**
 * @author xutao
 * @Package com.topcheer.common.datasource.constants
 * @Description: ${todo}
 * @date 2020/4/3 10:35
 */
public class DataSourceConstants {

    /**
     * 数据源类型-只读
     */
    public static final String DATA_SOURCE_TYPE_READ_ONLY = "read";

    /**
     * 数据源类型-只写
     */
    public static final String DATA_SOURCE_TYPE_WRITE_ONLY = "write";

    /**
     * 数据源类型-读写
     */
    public static final String DATA_SOURCE_TYPE_READ_WRITE = "read_write";

    /**
     * 数据源类型-其它
     */
    public static final String DATA_SOURCE_TYPE_OTHER = "other";


    /**
     * 数据库类型-mysql
     */
    public static final int DB_TYPE_MYSQL = 1;

    /**
     * 数据库类型-sqlServer
     */
    public static final int DB_TYPE_SQLSERVER = 2;

    /**
     * 数据库类型-oracle
     */
    public static final int DB_TYPE_ORACLE = 3;

    /**
     * 未配置数据源信息
     */
    public static final int EX_NO_DATA_SOURCE_KEY_BUILDER_CODE = 40901;

    /**
     * 未配置数据源生成器
     */
    public static final int EX_NO_DATA_SOURCE_BUILDER_CODE = 40902;
}
